package com.guangyunl.studentmanager02;
// 工具类
public class ArrayUtils {
    private ArrayUtils(){

    }

    public static int findIndexById(Student[] students, int id, int count){
        // 遍历查找
        for (int i = 0; i < count; i++) {
            if(id == students[i].getsId()){
                return i;
            }
        }
        return -1;
    }
}
